<!DOCTYPE html>
<html lang="en">

<head>
   <meta charset="UTF-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>Document</title>
</head>

<body>
   <div id="app">
      <p>
         金额: <input type="text" v-model.number="money">
      </p>
      大写金额: <span> {{money | toChina}} </span>
   </div>
</body>

</html>
<script src="./lib/vue.js"></script>
<!-- 金额转大写的过滤器 -->
<script src="./10_myFilters.js"></script>
<script>
   const vm = new Vue({
      el: '#app',
      data: {
         money: 0
      }
   })
</script>